//
// Created by fazhehy on 2024/3/25.
//

#ifndef GNSS_H
#define GNSS_H

#include "hy_common_inc.h"

typedef struct {
    double latitude;
    double longitude;
}gnss_point_t;

extern uint16_t gnss_target_point_len;
extern uint16_t gnss_next_point_index;
extern gnss_point_t gnss_target_point[50];

//void test();
uint8_t gnss_record_point(uint8_t num);
uint8_t gnss_run_point(gnss_point_t target_point);
void calculate_center_point();

#endif //GNSS_H
